<% if userLoc.community.nil? -%>
还没定居呢
<% else -%>
<%= extra%><%= link_to "#{userLoc.community.district.title}", district_path(userLoc.community.district)%>
<%= link_to "#{userLoc.community.title}", community_path(userLoc.community.district, userLoc.community)%>
<% end -%>